<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
    *{
        margin: 0;
        padding: 0;
    }
    #box{
        width: 100px;
        height: 100px;
        background-color: pink;
        padding: 100px;
        border: 80px solid blue;
        background-image: url("1.png");
        background-repeat: no-repeat;
        background-origin: content-box;/*背景图片起始源的位置*/
        background-position: -50px 0; /* 沿着x轴向左移动（向上移动也是负数）*/
        
        /*最后的距离是100px+80px-50px =130px */
    }
    </style>
</head>
<body>
    
</body>
</html>